<?php
/**
 * Description: 公共配置文件
 * Author: Garen
 */

if (file_exists ( APP_PATH . 'Common/Conf/db.config.php' )) {
	$dbconfig = require APP_PATH . 'Common/Conf/db.config.php';
} else {
	$dbconfig = array ();
}

$config = array (
		'MODULE_ALLOW_LIST' 	=> array('Home', 'Index'),
		'DEFAULT_MODULE'		=> 'Home',
		'DEFAULT_THEME' => 'Theme', // 启用模板主题
		'URL_DENY_SUFFIX' => 'pdf|ico|png|gif|jpg', // URL禁止访问的后缀设置
		'SESSION_AUTO_START' => true, // 是否开启SESSION
		
		'TMPL_PARSE_STRING' => array (
				'__IMG__' => __ROOT__.'/public/media/image',
				'__CSS__' => __ROOT__.'/public/media/css',
				'__JS__' => __ROOT__.'/public/media/js',
				'__STYLE__' => __ROOT__.'/public/style',
				'__UPLOADS__' => __ROOT__ . '/Uploads' 
		),

		'URL_HTML_SUFFIX'	=> '',
		
		
);

return array_merge ( $config, $dbconfig );
